import service from '@/utils/request'

// @Tags BcChannal
// @Summary 创建bcChannal表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcChannal true "创建bcChannal表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /bcChannal/createBcChannal [post]
export const createBcChannal = (data) => {
  return service({
    url: '/bcChannal/createBcChannal',
    method: 'post',
    data
  })
}

// @Tags BcChannal
// @Summary 删除bcChannal表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcChannal true "删除bcChannal表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcChannal/deleteBcChannal [delete]
export const deleteBcChannal = (data) => {
  return service({
    url: '/bcChannal/deleteBcChannal',
    method: 'delete',
    data
  })
}

// @Tags BcChannal
// @Summary 批量删除bcChannal表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除bcChannal表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcChannal/deleteBcChannal [delete]
export const deleteBcChannalByIds = (data) => {
  return service({
    url: '/bcChannal/deleteBcChannalByIds',
    method: 'delete',
    data
  })
}

// @Tags BcChannal
// @Summary 更新bcChannal表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcChannal true "更新bcChannal表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /bcChannal/updateBcChannal [put]
export const updateBcChannal = (data) => {
  return service({
    url: '/bcChannal/updateBcChannal',
    method: 'put',
    data
  })
}

// @Tags BcChannal
// @Summary 用id查询bcChannal表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BcChannal true "用id查询bcChannal表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /bcChannal/findBcChannal [get]
export const findBcChannal = (params) => {
  return service({
    url: '/bcChannal/findBcChannal',
    method: 'get',
    params
  })
}

// @Tags BcChannal
// @Summary 分页获取bcChannal表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取bcChannal表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /bcChannal/getBcChannalList [get]
export const getBcChannalList = (params) => {
  return service({
    url: '/bcChannal/getBcChannalList',
    method: 'get',
    params
  })
}

export const getProjectList = () => {
  return service({
    url: '/bcProject/getProjectList',
    method: 'get'
  })
}
